package com.cloudbroker.bcs.platform.ltb.bizexport.t2.transaction;

import com.cloudbroker.bcs.common.entity.HSBCPSBackVO;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.pay.PayBizService;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.pay.PingPlusPayBizService;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.pay.back.PayApplyBack;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.pay.back.PayConfirmBack;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.pay.back.PayRefundBack;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.pay.back.PingPlusPayApplyBack;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.pay.vo.*;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.transaction.back.DongbeiPayHtmlBack;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.transaction.vo.DongbeiPayHtmlForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.t2service.transaction.PayT2BizService;
import com.hundsun.jresplus.remoting.impl.annotation.ServiceParam;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by daibd19671 on 2016/10/28.
 */
@Service
public class PayT2 implements PayT2BizService {


    @Resource
    private PayBizService payBizService;

    @Resource
    private PingPlusPayBizService pingPlusPayBizService;

    @Override
    public PayApplyBack func_compay_apply(@ServiceParam("param")PayApplyForm form) {
        return payBizService.compay_apply(form);
    }

    @Override
    public PayConfirmBack func_result_apply(@ServiceParam("param") PayConfirmForm form) {
        return payBizService.result_apply(form);
    }


    @Override
    public DongbeiPayHtmlBack func_dongbei_pay_html(DongbeiPayHtmlForm form) {
        return payBizService.dongbei_pay_html(form);
    }



    public PingPlusPayApplyBack func_ping_pay_apply(PingPlusPayApplyForm form){
        return pingPlusPayBizService.func_ping_pay_apply(form);
    }

    public HSBCPSBackVO func_webhooks_callback(WebhooksForm form){
        return pingPlusPayBizService.func_webhooks_callback(form);
    }

    public PingPlusPayApplyBack func_ping_pay_oper( PingPlusPayOper form){
        return pingPlusPayBizService.func_ping_pay_oper(form);
    }

    public HSBCPSBackVO func_cancel_pay_apply( PayCancelForm form){
        return pingPlusPayBizService.func_cancel_pay_apply(form);
    }

    public PayRefundBack func_ping_pay_refund(PayRefundForm form){
        return pingPlusPayBizService.func_ping_pay_refund(form);
    }
}
